.class public Lcom/estrongs/android/ui/adapter/a;
.super Landroid/widget/BaseAdapter;
.source "GridAdapter_NewNetwork.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/adapter/a$a;
    }
.end annotation


# instance fields
.field private a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/android/ui/adapter/a$a;",
            ">;"
        }
    .end annotation
.end field

.field private b:Landroid/content/Context;

.field private c:[Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 5

    .line 1
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/ui/adapter/a;->b:Landroid/content/Context;

    .line 4
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v0, 0x7f03000b

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/adapter/a;->c:[Ljava/lang/String;

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    new-instance v1, Lcom/estrongs/android/ui/adapter/a$a;

    const/4 v2, 0x0

    aget-object p1, p1, v2

    const v2, 0x7f08077c

    const-string v3, "pcs"

    invoke-direct {v1, p0, p1, v2, v3}, Lcom/estrongs/android/ui/adapter/a$a;-><init>(Lcom/estrongs/android/ui/adapter/a;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    new-instance v0, Lcom/estrongs/android/ui/adapter/a$a;

    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/a;->c:[Ljava/lang/String;

    const/4 v2, 0x1

    aget-object v1, v1, v2

    const v2, 0x7f08077e

    const-string v3, "box"

    invoke-direct {v0, p0, v1, v2, v3}, Lcom/estrongs/android/ui/adapter/a$a;-><init>(Lcom/estrongs/android/ui/adapter/a;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    new-instance v0, Lcom/estrongs/android/ui/adapter/a$a;

    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/a;->c:[Ljava/lang/String;

    const/4 v2, 0x2

    aget-object v1, v1, v2

    const v2, 0x7f08078c

    const-string v3, "sugarsync"

    invoke-direct {v0, p0, v1, v2, v3}, Lcom/estrongs/android/ui/adapter/a$a;-><init>(Lcom/estrongs/android/ui/adapter/a;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    new-instance v0, Lcom/estrongs/android/ui/adapter/a$a;

    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/a;->c:[Ljava/lang/String;

    const/4 v2, 0x3

    aget-object v1, v1, v2

    const v2, 0x7f080780

    const-string v3, "dropbox"

    invoke-direct {v0, p0, v1, v2, v3}, Lcom/estrongs/android/ui/adapter/a$a;-><init>(Lcom/estrongs/android/ui/adapter/a;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    new-instance v0, Lcom/estrongs/android/ui/adapter/a$a;

    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/a;->c:[Ljava/lang/String;

    const/4 v2, 0x4

    aget-object v1, v1, v2

    const v2, 0x7f08078a

    const-string v3, "onedrive"

    invoke-direct {v0, p0, v1, v2, v3}, Lcom/estrongs/android/ui/adapter/a$a;-><init>(Lcom/estrongs/android/ui/adapter/a;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 10
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->u0()Z

    move-result p1

    const v0, 0x7f080783

    const/4 v1, 0x5

    if-nez p1, :cond_0

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    new-instance v2, Lcom/estrongs/android/ui/adapter/a$a;

    iget-object v3, p0, Lcom/estrongs/android/ui/adapter/a;->c:[Ljava/lang/String;

    aget-object v1, v3, v1

    const-string v3, "googledrive"

    invoke-direct {v2, p0, v1, v0, v3}, Lcom/estrongs/android/ui/adapter/a$a;-><init>(Lcom/estrongs/android/ui/adapter/a;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {p1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 12
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    new-instance v2, Lcom/estrongs/android/ui/adapter/a$a;

    iget-object v3, p0, Lcom/estrongs/android/ui/adapter/a;->c:[Ljava/lang/String;

    aget-object v1, v3, v1

    const-string v3, "gdrive"

    invoke-direct {v2, p0, v1, v0, v3}, Lcom/estrongs/android/ui/adapter/a$a;-><init>(Lcom/estrongs/android/ui/adapter/a;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {p1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :goto_0
    const/4 p1, 0x6

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    new-instance v1, Lcom/estrongs/android/ui/adapter/a$a;

    iget-object v2, p0, Lcom/estrongs/android/ui/adapter/a;->c:[Ljava/lang/String;

    const/4 v3, 0x7

    aget-object p1, v2, p1

    const v2, 0x7f080788

    const-string v4, "s3"

    invoke-direct {v1, p0, p1, v2, v4}, Lcom/estrongs/android/ui/adapter/a$a;-><init>(Lcom/estrongs/android/ui/adapter/a;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    new-instance v0, Lcom/estrongs/android/ui/adapter/a$a;

    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/a;->c:[Ljava/lang/String;

    const/16 v2, 0x8

    aget-object v1, v1, v3

    const v3, 0x7f08078f

    const-string v4, "yandex"

    invoke-direct {v0, p0, v1, v3, v4}, Lcom/estrongs/android/ui/adapter/a$a;-><init>(Lcom/estrongs/android/ui/adapter/a;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 15
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    new-instance v0, Lcom/estrongs/android/ui/adapter/a$a;

    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/a;->c:[Ljava/lang/String;

    const/16 v3, 0x9

    aget-object v1, v1, v2

    const v2, 0x7f080787

    const-string v4, "megacloud"

    invoke-direct {v0, p0, v1, v2, v4}, Lcom/estrongs/android/ui/adapter/a$a;-><init>(Lcom/estrongs/android/ui/adapter/a;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    new-instance v0, Lcom/estrongs/android/ui/adapter/a$a;

    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/a;->c:[Ljava/lang/String;

    aget-object v1, v1, v3

    const v2, 0x7f080785

    const-string v3, "mediafire"

    invoke-direct {v0, p0, v1, v2, v3}, Lcom/estrongs/android/ui/adapter/a$a;-><init>(Lcom/estrongs/android/ui/adapter/a;Ljava/lang/String;ILjava/lang/String;)V

    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 17
    invoke-static {}, Lcom/estrongs/android/pop/utils/q;->a()Ljava/lang/String;

    move-result-object p1

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/a;->b:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/ui/pcs/j;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 19
    invoke-direct {p0, v4}, Lcom/estrongs/android/ui/adapter/a;->a(Ljava/lang/String;)V

    goto :goto_1

    :cond_1
    const-string v0, "TW"

    .line 20
    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_2

    const-string v0, "HK"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    .line 21
    :cond_2
    :goto_1
    invoke-direct {p0, v4}, Lcom/estrongs/android/ui/adapter/a;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 2

    const/4 v0, 0x0

    .line 1
    :goto_0
    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_1

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/ui/adapter/a$a;

    invoke-static {v1}, Lcom/estrongs/android/ui/adapter/a$a;->a(Lcom/estrongs/android/ui/adapter/a$a;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    invoke-interface {p1, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    return-void

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method


# virtual methods
.method public a(I)I
    .locals 1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/ui/adapter/a$a;

    invoke-static {p1}, Lcom/estrongs/android/ui/adapter/a$a;->c(Lcom/estrongs/android/ui/adapter/a$a;)I

    move-result p1

    return p1
.end method

.method public b(I)Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/ui/adapter/a$a;

    invoke-static {p1}, Lcom/estrongs/android/ui/adapter/a$a;->b(Lcom/estrongs/android/ui/adapter/a$a;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public c(I)Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/ui/adapter/a$a;

    invoke-static {p1}, Lcom/estrongs/android/ui/adapter/a$a;->a(Lcom/estrongs/android/ui/adapter/a$a;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public getCount()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/a;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 0

    const/4 p1, 0x0

    return-object p1
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 2

    if-nez p2, :cond_0

    .line 1
    iget-object p2, p0, Lcom/estrongs/android/ui/adapter/a;->b:Landroid/content/Context;

    invoke-static {p2}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const p3, 0x7f0c0194

    const/4 v0, 0x0

    invoke-virtual {p2, p3, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    :cond_0
    const p3, 0x7f0905bc

    .line 2
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/ImageView;

    .line 3
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/adapter/a;->a(I)I

    move-result v0

    invoke-virtual {p3, v0}, Landroid/widget/ImageView;->setImageResource(I)V

    const p3, 0x7f090cd9

    .line 4
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/TextView;

    .line 5
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f060294

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p3, v0}, Landroid/widget/TextView;->setTextColor(I)V

    .line 6
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/adapter/a;->b(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p3, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-object p2
.end method
